package db;

import interfaces.IFInvoice;

import java.sql.Connection;
import java.util.Date;

public class InvoiceDb implements IFInvoice {

	protected Connection con;

	public InvoiceDb() {
		connectDb();
	}

	public void connectDb() {
		con = DbConnection.getInstance().getDBcon();
	}

	public void disconnectDb() {
		DbConnection.getInstance();
		DbConnection.closeConnection();
	}
	
	@Override
	public void insertInvoice(Date paymentDate, double amount) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void searchInvoice(int id) throws Exception {
		// TODO Auto-generated method stub
		
	}

}
